<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:general="http://java.sun.com/jsf/composite/components/general"
      >
    <ui:composition template="template.xhtml">
        <ui:define name="dialogs">


        </ui:define>


        <ui:define name="content">
            <h:form id="bankListform">
       
              <h:panelGroup id="gastosList">
                  <p:dataTable var="g" value="#{gastosBean.gastos}"
                               paginator="true" rows="10"
                                     emptyMessage="Nenhum gasto foi encontrado">

                            <f:facet name="header">
                                Lista de custos da obra
                            </f:facet>

                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Etapa" />
                                </f:facet>
                                <h:outputText value="#{g.etapa}" />
                            </p:column>

                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Valor" />
                                </f:facet>
                                <h:outputText value="#{g.valorEtapa}" />
                            </p:column>

                        </p:dataTable>
                    </h:panelGroup>
            </h:form>
        </ui:define>
    </ui:composition>
</html>


